package com.bos.service;
import com.bos.domian.base.BaseQuery;
import com.bos.domian.base.Promotion;
import javax.ws.rs.*;
import java.util.Date;
import java.util.Map;

/**
 * @author misterWei
 * @create 2018年11月20号:14点44分
 * @mailbox mynameisweiyan@gmail.com
 */
public interface PromotionService {
    void save(Promotion model);

    Map<String,Object> promotionPageQuery(int i, Integer rows);

    @Path("/pageQuery")  //基于webService的远程调用服务
    @GET
    @Produces({"application/json","application/xml"})
    BaseQuery<Promotion> pageQuery(@QueryParam("page") int page,@QueryParam("rows") int rows );

    @Path("/findOne/{id}")
    @GET
    @Produces({"application/json","application/xml"})
    public Promotion findOne(@PathParam(value = "id")  Integer id);
   //任务调度更新当前时间
    void updateStatus(Date date);
}
